public class testEquals {
    public static void main(String[] args) {
        String a = "sss";
        String b = "sss";
        String c = new String("sss");
        System.out.println(a.equals(b));
        System.out.println(a == b);
        System.out.println(a.equals(c));
        System.out.println(a == c);
    }
}
